#include "SptMain.h"

using namespace spt;


static IntCallBack Int1MsCallBack = 0;
static bool8 Int1MsEnable = 0;
SemaphoreB spt::SptSampSemB;

void spt::Enable1ApiMsInt(IntCallBack CallBack, bool8 Enable)
{
	if (CallBack)
	{
		Int1MsCallBack = CallBack;
	}

	Int1MsEnable = Enable;
}

void spt::Spt1MsInt()
{
	
	if (Int1MsEnable && Int1MsCallBack)
	{
		Int1MsCallBack();
	}
}

void spt::SptSampInt()
{
	//SptSampSemB.Post();

}


